﻿@model Business.Models.DaiLy
@{
    ViewBag.Title = "Thêm mới Reseller";
    Layout = "";
}

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<script>
    function onComplete() {
        $('.alert').show();
    }
</script>
<div class="row-fluid">
    <div class="span12">
        <section class="utopia-widget">
            <div class="utopia-widget-title" style="border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: rgb(238, 238, 238); ">
            <img src="@Url.Content("/Content/Images/paragraph_justify.png")" class="utopia-widget-icon">
            <span>Cập nhật thông tin đại lý</span></div><div class="utopia-widget-content" style="display: block; ">

           

@using (Html.BeginForm("Index", "DaiLy", new { Function = "Edit", DaiLyId = Request.QueryString["DaiLyId"] }, FormMethod.Post))
{
    @Html.ValidationSummary(true)
    @Html.HiddenFor(model=>model.IdDaiLy)
    <fieldset>      
        <table class="input-form">
            <tr>
                <td><div class="editor-label">
            @Html.LabelFor(model => model.TenDaiLy)
        </div></td>
        <td>
            <div class="editor-field">
            @Html.TextBoxFor(model => model.TenDaiLy)
            <div>@Html.ValidationMessageFor(model => model.TenDaiLy)</div>
        </div>
        </td>
        <td><div class="editor-label">
            @Html.LabelFor(model => model.Email)
        </div></td>
        <td><div class="editor-field">
            @Html.TextBoxFor(model => model.Email)
           <div> @Html.ValidationMessageFor(model => model.Email)</div>
        </div></td>
        <td></td>
        <td></td>
            </tr>
            <tr>
          
                <td><div class="editor-label">
            @Html.LabelFor(model => model.SoDienThoai)
        </div></td>
        <td><div class="editor-field">
            @Html.TextBoxFor(model => model.SoDienThoai)
            <div>@Html.ValidationMessageFor(model => model.SoDienThoai)</div>
        </div></td>
        <td> <div class="editor-label">
            @Html.LabelFor(model => model.HoatDong)
        </div></td>
        <td>
             <div class="editor-field">
            @Html.CheckBoxFor(model => model.HoatDong)
            <div>@Html.ValidationMessageFor(model => model.HoatDong)</div>
        </div>
        </td>   <td>
            
        </td>
        <td></td>
            </tr>
        </table>
         <p>
            <input type="submit" value="Thay đổi" />
        </p>
        
    </fieldset>
}
     </section>
    </div>
</div>
